home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / drdobbs / 1991 / 05 / d_flat / menus.c < prev    next >
Text File  |  1991-02-18  |  3KB  |  91 lines

  1. /* -------------- menus.c ------------- */
  2.  
  3. #include <stdio.h>
  4. #include "dflat.h"
  5.  
  6. DEFMENU(SystemMenu)
  7.     POPDOWN("System Menu", NULL)
  8.         SELECTION("~Restore",     ID_SYSRESTORE,     0,         0 )
  9.         SELECTION("~Move",         ID_SYSMOVE,     0,         0 )
  10.         SELECTION("~Size",         ID_SYSSIZE,     0,         0 )
  11.         SELECTION("Mi~nimize",     ID_SYSMINIMIZE, 0,         0 )
  12.         SELECTION("Ma~ximize",     ID_SYSMAXIMIZE, 0,         0 )
  13.         SEPARATOR
  14.         SELECTION("~Close",     ID_SYSCLOSE,     ALT_F4, 0 )
  15.     ENDPOPDOWN
  16. ENDMENU
  17.  
  18. DEFMENU(MainMenu)
  19.  
  20.     POPDOWN(       "~File",  NULL    )
  21.         SELECTION( "~New",            ID_NEW,          0, 0 )
  22.         SELECTION( "~Open...",        ID_OPEN,         0, 0 )
  23.         SEPARATOR
  24.         SELECTION( "~Save",          ID_SAVE,      ALT_S, 0 )
  25.         SELECTION( "Save ~as...",      ID_SAVEAS,       0, 0 )
  26.         SEPARATOR
  27.         SELECTION( "~Print",          ID_PRINT,        0, 0 )
  28.         SEPARATOR
  29.         SELECTION( "E~xit",           ID_EXIT,     ALT_X, 0 )
  30.     ENDPOPDOWN
  31.  
  32.     POPDOWN(       "~Edit", PrepEditMenu    )
  33.         SELECTION( "~Undo",            ID_UNDO,        ALT_BS,    INACTIVE )
  34.         SEPARATOR
  35.         SELECTION( "Cu~t",            ID_CUT,            SHIFT_DEL,     INACTIVE )
  36.         SELECTION( "~Copy",            ID_COPY,        CTRL_INS,    INACTIVE )
  37.         SELECTION( "~Paste",        ID_PASTE,        SHIFT_INS,    INACTIVE )
  38.         SEPARATOR
  39.         SELECTION( "Cl~ear",        ID_CLEAR,        0,    INACTIVE )
  40.         SELECTION( "~Delete",        ID_DELETETEXT, DEL,    INACTIVE )
  41.         SEPARATOR
  42.         SELECTION( "Pa~ragraph",    ID_PARAGRAPH,    ALT_P,    INACTIVE )
  43.     ENDPOPDOWN
  44.  
  45.     POPDOWN(       "~View",  NULL    )
  46.         SELECTION( "~Normal",        ID_NORMAL,        0,        CHECKED )
  47.         SELECTION( "S~orted by...", ID_SORTEDBY,    0,        0 )
  48.         SEPARATOR
  49.         SELECTION( "~Search",        ID_SEARCH,        0,        0 )
  50.     ENDPOPDOWN
  51.  
  52.     POPDOWN(       "~Options", PrepOptionsMenu     )
  53.         SELECTION( "~Insert",          ID_INSERT,     INS,      TOGGLE)
  54.         SELECTION( "~Word wrap",    ID_WRAP,        0,         TOGGLE)
  55.         SELECTION( "~Tabs     ",    ID_TABS,        0,        0 )
  56.         SEPARATOR
  57.         SELECTION( "~Color",        ID_COLOR,        0,         0)
  58.         SELECTION( "~Monochrome",    ID_MONO,        0,         0)
  59.         SEPARATOR
  60.         SELECTION( "~Save Options",    ID_SAVEOPTIONS,    0,        0 )
  61.     ENDPOPDOWN
  62.  
  63.  
  64.     POPDOWN( "~Window", PrepWindowMenu        )
  65.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  66.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  67.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  68.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  69.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  70.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  71.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  72.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  73.         SELECTION(  NULL,  ID_WINDOW, 0, 0 )
  74.         SELECTION(  NULL,  0, 0, 0 )
  75.         SELECTION(  NULL,  0, 0, 0 )
  76.         SELECTION(  NULL,  0, 0, 0 )
  77.         SEPARATOR
  78.         SELECTION(  "~Close all", ID_CLOSEALL, 0, 0)
  79.     ENDPOPDOWN
  80.  
  81.     POPDOWN( "~Help", NULL  )
  82.         SELECTION(  "~Help for help...",     ID_HELPHELP,  0, 0 )
  83.         SELECTION(    "~Extended help...",    ID_EXTHELP,   0, 0 )
  84.         SELECTION(  "~Keys help...",        ID_KEYSHELP,  0, 0 )
  85.         SELECTION(  "Help ~index...",        ID_HELPINDEX, 0, 0 )
  86.         SEPARATOR
  87.         SELECTION(  "~About...",            ID_ABOUT,     0, 0 )
  88.     ENDPOPDOWN
  89.  
  90. ENDMENU
  91.